package guiyou.sw.agrinfo;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

public class DisplayContentActivity extends Activity{
	private ImageView mImg;
	private TextView mTitle;
	private TextView mInfo;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		//requestWindowFeature(Window.FEATURE_NO_TITLE);		
		setContentView(R.layout.display_content);
		
		Bundle bundle = this.getIntent().getExtras();
		String title = bundle.getString("title");
		String info = bundle.getString("info");
		int img = bundle.getInt("img");
		
		mImg = (ImageView)this.findViewById(R.id.img);
		mTitle = (TextView)this.findViewById(R.id.title);
		mInfo = (TextView)this.findViewById(R.id.info);
		
		mImg.setBackgroundResource(img);
		mTitle.setText(title);
		mInfo.setText(info);
		
		
	}
}
